<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>width</title>
<!-- Bootstrap core CSS -->
<link href="../../asserts/bootstrap-3.3.0/css/bootstrap.min.css" rel="stylesheet">
<!--lib js  -->
<script type="text/javascript" src="../../asserts/jquery-1.11.3/jquery.min.js"></script>
<!-- js加载器 -->
<script type="text/javascript" src="../../src/core/jui.config.js"></script>
<script type="text/javascript" src="../../src/loader/loader.js"></script>
<script type="text/javascript" src="gridData.js"></script>

</head>
<body>

<div id="grid"></div>

<script type="text/javascript">

JUI
.dir('../../src/') // 设置JS存放根目录
.use('Grid',function(){
	grid = new JUI.Grid({
		renderId:'grid'
		,data : gridData
		,striped:true // 斑马线
		,pagination :true
		,width:'auto' // 固定宽度,设置为auto,默认为100%
		,columns : [ [
			{
				field : 'cityName',
				title : '城市(width:200)'
				,width:200
			},
			{
				field : 'mobile',
				title : '手机号(width:120)'
				,width:120
			},
			{
				field : 'address',
				title : '地址(width:300)'
				,width:300
			},
			{
				field : 'createDate',
				title : '创建时间(width:200)'
				,width:200
			}] 
		]
	});
});



</script>
</body>
</html>